<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业14</title>
    <script>
        /*
        14.  将数组用 | 或其他符号连接成一个字符串。
        */

        var arr = [2,3,1,5,6,4];

        console.log(arr.join("|"));

    </script>
</head>
<body>
    
</body>
</html>